package com.zb.kl.domain.error;


public enum KnownErrorCode {
    ParseError(-32700, "Invalid JSON was received by the server."),
    InvalidRequest(-32600, "The JSON sent is not a valid Request object."),
    MethodNotFound(-32601, "The method does not exist / is not available."),
    InvalidParams(-32602, "Invalid method parameter(s)."),
    InternalError(-32603, "Internal JSON-RPC error."),
    TaskNotFound(-32001, "The specified task was not found."),
    TaskNotCancelable(-32002, "The specified task cannot be canceled."),
    PushNotificationNotSupported(-32003, "Push Notifications are not supported for this operation or agent."),
    UnsupportedOperation(-32004, "The requested operation is not supported by the agent.");

    private final int code;
    private final String message;

    KnownErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}